package com.lcf.system.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.lcf.framework.config.enums.BaseEnum;
import lombok.Getter;

/**
 * 菜单类型枚举
 * 1目录 2菜单 3按钮
 *
 * @author lcf
 */
@Getter
public enum SysMenuTypeEnum implements BaseEnum<Integer> {
    LIST(1, "目录"),
    MENU(2, "菜单"),
    BUTTON(3, "按钮");

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String name;

    SysMenuTypeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
